package com.wjw.interfacesegregation.segregation01;

import com.wjw.interfacesegregation.segregation01.service.impl.Chicken;
import com.wjw.interfacesegregation.segregation01.service.impl.Kun;

/**
 * 坤2
 *
 * @author ikaros
 * @date 2024/7/7 22:30
 * @see <a href="ikaros@qq.com">mailTo: ikaros@qq.com</a>
 */
public class Kun01 {
    public static void main(String[] args) {
        Kun01 kun01 = new Kun01();
        Kun kun = new Kun();
        kun01.dependSing(kun);
        kun01.dependJump(kun);
        kun01.dependRap(kun);
    }

    public void dependSing(Kun kun) {
        System.out.println("Kun01依赖于sing方法");
        kun.sing();
    }

    public void dependJump(Kun kun) {
        System.out.println("Kun01依赖于jump方法");
        kun.jump();
    }

    public void dependRap(Kun kun) {
        System.out.println("Kun01依赖于rap方法");
        kun.rap();
    }
}
